package com.chinawayltd.ews.sample.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class TVehicleStatisticsDailyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TVehicleStatisticsDailyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNull() {
            addCriterion("vehicle_id is null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIsNotNull() {
            addCriterion("vehicle_id is not null");
            return (Criteria) this;
        }

        public Criteria andVehicleIdEqualTo(Long value) {
            addCriterion("vehicle_id =", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotEqualTo(Long value) {
            addCriterion("vehicle_id <>", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThan(Long value) {
            addCriterion("vehicle_id >", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("vehicle_id >=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThan(Long value) {
            addCriterion("vehicle_id <", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdLessThanOrEqualTo(Long value) {
            addCriterion("vehicle_id <=", value, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdIn(List<Long> values) {
            addCriterion("vehicle_id in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotIn(List<Long> values) {
            addCriterion("vehicle_id not in", values, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdBetween(Long value1, Long value2) {
            addCriterion("vehicle_id between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andVehicleIdNotBetween(Long value1, Long value2) {
            addCriterion("vehicle_id not between", value1, value2, "vehicleId");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIsNull() {
            addCriterion("statistics_date is null");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIsNotNull() {
            addCriterion("statistics_date is not null");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateEqualTo(Date value) {
            addCriterionForJDBCDate("statistics_date =", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("statistics_date <>", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateGreaterThan(Date value) {
            addCriterionForJDBCDate("statistics_date >", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("statistics_date >=", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateLessThan(Date value) {
            addCriterionForJDBCDate("statistics_date <", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("statistics_date <=", value, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateIn(List<Date> values) {
            addCriterionForJDBCDate("statistics_date in", values, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("statistics_date not in", values, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("statistics_date between", value1, value2, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andStatisticsDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("statistics_date not between", value1, value2, "statisticsDate");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeIsNull() {
            addCriterion("total_driver_time is null");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeIsNotNull() {
            addCriterion("total_driver_time is not null");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeEqualTo(Integer value) {
            addCriterion("total_driver_time =", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeNotEqualTo(Integer value) {
            addCriterion("total_driver_time <>", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeGreaterThan(Integer value) {
            addCriterion("total_driver_time >", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_driver_time >=", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeLessThan(Integer value) {
            addCriterion("total_driver_time <", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeLessThanOrEqualTo(Integer value) {
            addCriterion("total_driver_time <=", value, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeIn(List<Integer> values) {
            addCriterion("total_driver_time in", values, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeNotIn(List<Integer> values) {
            addCriterion("total_driver_time not in", values, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeBetween(Integer value1, Integer value2) {
            addCriterion("total_driver_time between", value1, value2, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalDriverTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("total_driver_time not between", value1, value2, "totalDriverTime");
            return (Criteria) this;
        }

        public Criteria andTotalMileageIsNull() {
            addCriterion("total_mileage is null");
            return (Criteria) this;
        }

        public Criteria andTotalMileageIsNotNull() {
            addCriterion("total_mileage is not null");
            return (Criteria) this;
        }

        public Criteria andTotalMileageEqualTo(BigDecimal value) {
            addCriterion("total_mileage =", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageNotEqualTo(BigDecimal value) {
            addCriterion("total_mileage <>", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageGreaterThan(BigDecimal value) {
            addCriterion("total_mileage >", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_mileage >=", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageLessThan(BigDecimal value) {
            addCriterion("total_mileage <", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_mileage <=", value, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageIn(List<BigDecimal> values) {
            addCriterion("total_mileage in", values, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageNotIn(List<BigDecimal> values) {
            addCriterion("total_mileage not in", values, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_mileage between", value1, value2, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalMileageNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_mileage not between", value1, value2, "totalMileage");
            return (Criteria) this;
        }

        public Criteria andTotalFuelIsNull() {
            addCriterion("total_fuel is null");
            return (Criteria) this;
        }

        public Criteria andTotalFuelIsNotNull() {
            addCriterion("total_fuel is not null");
            return (Criteria) this;
        }

        public Criteria andTotalFuelEqualTo(BigDecimal value) {
            addCriterion("total_fuel =", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelNotEqualTo(BigDecimal value) {
            addCriterion("total_fuel <>", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelGreaterThan(BigDecimal value) {
            addCriterion("total_fuel >", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("total_fuel >=", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelLessThan(BigDecimal value) {
            addCriterion("total_fuel <", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelLessThanOrEqualTo(BigDecimal value) {
            addCriterion("total_fuel <=", value, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelIn(List<BigDecimal> values) {
            addCriterion("total_fuel in", values, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelNotIn(List<BigDecimal> values) {
            addCriterion("total_fuel not in", values, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_fuel between", value1, value2, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTotalFuelNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("total_fuel not between", value1, value2, "totalFuel");
            return (Criteria) this;
        }

        public Criteria andTaskNumsIsNull() {
            addCriterion("task_nums is null");
            return (Criteria) this;
        }

        public Criteria andTaskNumsIsNotNull() {
            addCriterion("task_nums is not null");
            return (Criteria) this;
        }

        public Criteria andTaskNumsEqualTo(Byte value) {
            addCriterion("task_nums =", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsNotEqualTo(Byte value) {
            addCriterion("task_nums <>", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsGreaterThan(Byte value) {
            addCriterion("task_nums >", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsGreaterThanOrEqualTo(Byte value) {
            addCriterion("task_nums >=", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsLessThan(Byte value) {
            addCriterion("task_nums <", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsLessThanOrEqualTo(Byte value) {
            addCriterion("task_nums <=", value, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsIn(List<Byte> values) {
            addCriterion("task_nums in", values, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsNotIn(List<Byte> values) {
            addCriterion("task_nums not in", values, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsBetween(Byte value1, Byte value2) {
            addCriterion("task_nums between", value1, value2, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskNumsNotBetween(Byte value1, Byte value2) {
            addCriterion("task_nums not between", value1, value2, "taskNums");
            return (Criteria) this;
        }

        public Criteria andTaskTimeIsNull() {
            addCriterion("task_time is null");
            return (Criteria) this;
        }

        public Criteria andTaskTimeIsNotNull() {
            addCriterion("task_time is not null");
            return (Criteria) this;
        }

        public Criteria andTaskTimeEqualTo(Integer value) {
            addCriterion("task_time =", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeNotEqualTo(Integer value) {
            addCriterion("task_time <>", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeGreaterThan(Integer value) {
            addCriterion("task_time >", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeGreaterThanOrEqualTo(Integer value) {
            addCriterion("task_time >=", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeLessThan(Integer value) {
            addCriterion("task_time <", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeLessThanOrEqualTo(Integer value) {
            addCriterion("task_time <=", value, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeIn(List<Integer> values) {
            addCriterion("task_time in", values, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeNotIn(List<Integer> values) {
            addCriterion("task_time not in", values, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeBetween(Integer value1, Integer value2) {
            addCriterion("task_time between", value1, value2, "taskTime");
            return (Criteria) this;
        }

        public Criteria andTaskTimeNotBetween(Integer value1, Integer value2) {
            addCriterion("task_time not between", value1, value2, "taskTime");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioIsNull() {
            addCriterion("utilization_ratio is null");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioIsNotNull() {
            addCriterion("utilization_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioEqualTo(BigDecimal value) {
            addCriterion("utilization_ratio =", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioNotEqualTo(BigDecimal value) {
            addCriterion("utilization_ratio <>", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioGreaterThan(BigDecimal value) {
            addCriterion("utilization_ratio >", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("utilization_ratio >=", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioLessThan(BigDecimal value) {
            addCriterion("utilization_ratio <", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioLessThanOrEqualTo(BigDecimal value) {
            addCriterion("utilization_ratio <=", value, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioIn(List<BigDecimal> values) {
            addCriterion("utilization_ratio in", values, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioNotIn(List<BigDecimal> values) {
            addCriterion("utilization_ratio not in", values, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("utilization_ratio between", value1, value2, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andUtilizationRatioNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("utilization_ratio not between", value1, value2, "utilizationRatio");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}